// import '@/utils/console.js' // 去掉打印语句
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/plugins/vant.js'
import 'amfe-flexible/index.js'
import * as api from '@/api'
import * as tokenFn from '@/utils/token.js'
import * as utils from '@/utils/utils.js'
import 'highlight.js/styles/default.css'
import directiveObj from '@/utils/directive.js'
import * as storage from '@/utils/storage.js'
import jsonB from 'json-bigint'

// 生产环境下去掉控制台打印
if (process.env.NODE_ENV !== 'development') {
  console.log = function () {}
  console.warning = function () {}
  console.dir = function () {}
  console.error = function () {}
}
Vue.prototype.$api = api
Vue.prototype.$tokenFn = tokenFn
Vue.prototype.$utils = utils
Vue.prototype.$storage = storage
Vue.prototype.$jsonB = jsonB
Vue.config.productionTip = false

Vue.use(directiveObj)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
